﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Net.Chirash.Twitter.TweetZone.WindowComponents.RefreshIndicator"
	x:Name="root"
	d:DesignWidth="640" d:DesignHeight="480">
    <Grid Background="Transparent">
        <Rectangle x:Name="rect" Fill="{StaticResource RefreshIndicatorBrush}" StrokeThickness="0" >
            <Rectangle.RenderTransformOrigin>
                <Point X="0.5" Y="0.5" />
            </Rectangle.RenderTransformOrigin>
            <Rectangle.Resources>
            </Rectangle.Resources>
            <Rectangle.RenderTransform>
                <RotateTransform />
            </Rectangle.RenderTransform>
            <Rectangle.Triggers>
                <EventTrigger RoutedEvent="Loaded">
                    <BeginStoryboard >
                        <Storyboard x:Name="rotation">
                            <DoubleAnimation  
                                Storyboard.TargetName="rect"
                                Storyboard.TargetProperty="(RenderTransform).(RotateTransform.Angle)"
                                From="0"
                                To="360"
                                Duration="0:0:2"
                                RepeatBehavior="Forever"
                                />
                        </Storyboard>
                    </BeginStoryboard>       
                    
                </EventTrigger>
            </Rectangle.Triggers>
        </Rectangle>
    </Grid>
</UserControl>